package cn.outsourcing.supermarket.mapper;

import cn.outsourcing.supermarket.po.HiolabsRegion;
import cn.outsourcing.supermarket.provider.RegionProvider;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author gzkemays
 * @since 2021-10-23
 */
public interface HiolabsRegionMapper extends BaseMapper<HiolabsRegion> {
  /**
   * 获取地区组合
   *
   * @param countryId 国家
   * @param cityId 城市
   * @param districtId 地区
   * @return 地址列表
   */
  @SelectProvider(value = RegionProvider.class, method = "getAddressByIdGroup")
  List<HiolabsRegion> getAddressByIdGroup(Integer countryId, Integer cityId, Integer districtId);
}
